package com.mobile.check.beans;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 类名: BluetoothInfo
 * 作者: 李学伟
 * 日期: 2020年10月14日 10:39
 * 描述:
 */
public class BluetoothInfo implements Parcelable {
    private String name;
    private String mac;
    private String cod;
    private String rssi;
    private String deviceType;
    private String bond;
    private String uuids;
    private int bondStatus;

    public BluetoothInfo(String name, String mac) {
        this.name = name;
        this.mac = mac;
    }

    public String getCod() {
        return cod;
    }

    public void setCod(String cod) {
        this.cod = cod;
    }

    public String getRssi() {
        return rssi;
    }

    public void setRssi(String rssi) {
        this.rssi = rssi;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getBond() {
        return bond;
    }

    public void setBond(String bond) {
        this.bond = bond;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getBondStatus() {
        return bondStatus;
    }

    public void setBondStatus(int bondStatus) {
        this.bondStatus = bondStatus;
    }

    public String getUuids() {
        return uuids;
    }

    public void setUuids(String uuids) {
        this.uuids = uuids;
    }

    @Override
    public String toString() {
        return "BluetoothInfo{" +
                "name='" + name + '\'' +
                ", mac='" + mac + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.mac);
        dest.writeString(this.cod);
        dest.writeString(this.rssi);
        dest.writeString(this.deviceType);
        dest.writeString(this.bond);
        dest.writeString(this.uuids);
        dest.writeInt(this.bondStatus);
    }

    protected BluetoothInfo(Parcel in) {
        this.name = in.readString();
        this.mac = in.readString();
        this.cod = in.readString();
        this.rssi = in.readString();
        this.deviceType = in.readString();
        this.bond = in.readString();
        this.uuids = in.readString();
        this.bondStatus = in.readInt();
    }

    public static final Creator<BluetoothInfo> CREATOR = new Creator<BluetoothInfo>() {
        @Override
        public BluetoothInfo createFromParcel(Parcel source) {
            return new BluetoothInfo(source);
        }

        @Override
        public BluetoothInfo[] newArray(int size) {
            return new BluetoothInfo[size];
        }
    };

}
